import { createApp } from 'vue'
import {createRouter,createWebHashHistory} from "vue-router"
import Login from './login.vue'
import Register from './register.vue'

const HelloVueApp = {
    data() {
      return {
        message: 'Hello Vue!!'		// 在data方法的返回值中设置属性
      }
    }
  }

const routes = [							// 配置路由
    { path: '/login', component: Login },
    { path: '/register', component: Register },]

const router = createRouter({ routes,
    history: createWebHashHistory(),})

const app = createApp(HelloVueApp)
app.use(router)
app.mount('#app')